// Gate checkin test
private gate.Corpus corpus;
    private void createCorpusFromStringData(String[] content) throws
GateException {
        corpus = Factory.newCorpus("Transient Gate Corpus");

        for (int i = 0; i < content.length; i++) {
            if (logger.isDebugEnabled()) logger.debug("\t " + (i + 1) + ") "
+ content[i]);
            try {
                String string = content[i];
                corpus.add(Factory.newDocument(string));         // create
document from string passed in
                if (logger.isDebugEnabled()) logger.debug(" -- success");
            }
            catch (gate.creole.ResourceInstantiationException e) {
                logger.error(" -- failed (" + e.getMessage() + ")");
                throw new RuntimeException(e);
            }
            catch (Exception e) {
                logger.error(" -- " + e.getMessage());
                throw new RuntimeException(e);
            }
        }
    }

